package com.vinfai.patterns.observers;
/**
 * 
 * 观察者模式(observers,发布/订阅模式)
 * @author vinfai
 * 
 */
public class Client {
	
	public static void main(String[] args){
		
		WeatherData data =  new WeatherData();
		MyDisplay play = new MyDisplay(data);
		MyDisplay play2 = new MyDisplay(data);
		data.setMeasureData(25d, 100d);
	}
}
